import React from 'react'
import { HashRouter, Route, Switch } from 'react-router-dom'
import Home from '../pages/home/index'
import BookShelf from '../pages/bookShelf/index'

const BasicRoute = () => (
  <HashRouter>
    <Switch>
      <Route exact path="/" component={Home}></Route>
      <Route exact path="/home" component={Home}></Route>
      <Route exact path="/BookShelf" component={BookShelf}></Route>
    </Switch>
  </HashRouter>
);

export default BasicRoute